<template>
  <CrudTable :columns="columns" :api="api" />
</template>
<script setup>
import CrudTable from '@/components/CrudTable.vue'
import * as api from '@/api/purchase'
const columns = [
  { prop: 'id', label: '采购ID' },
  { prop: 'deviceId', label: '器械ID' },
  { prop: 'partName', label: '采购零部件名称' },
  { prop: 'quantity', label: '数量' },
  { prop: 'supplier', label: '供应商' },
  { prop: 'orderDate', label: '采购日期' },
  { prop: 'status', label: '状态' }
]
</script>